package com.example.fittrack.domain.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;

@Data
public class BasicInfoBo {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @NotBlank(message = "姓名不能为空!")
    private String employeeName;

    @NotBlank(message = "编号不能为空!")
    private String employeeNo;
    /**
     * 01-幼儿
     * 02-中小学生
     * 03-成年人
     * 04-老年人
     */
    @NotBlank(message = "类型不能为空!")
    private String employeeType;

    @NotBlank(message = "手机号不能为空!")
    private String phone;

    @NotBlank(message = "出生日期不能为空!")
    private String birthDate;

    @NotBlank(message = "性别不能为空!")
    private String sex;

    private Integer grade;

    private String createTime;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

}
